package com.zx.framework.plat.company.po;

import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;


/**
 * Company entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="s_company", 
	uniqueConstraints = {@UniqueConstraint(columnNames="CODE"), @UniqueConstraint(columnNames="NAME")}
)

public class Company  implements java.io.Serializable {


    // Fields    

     private String id;
     private String name;
     private String code;
     private String contacts;
     private String phoneNum;
     private String adress;
     private String fax;
     private String email;
     private String scale;
     private String nature;
     private String industry;
     private String thearea1;
     private String thearea2;
     private String thearea;
     private String thearea3;
     private String capital;
     private String website;
     private Date createTime;
     private Integer status;
     private Integer validateStatus;


    // Constructors

    /** default constructor */
    public Company() {
    }

	/** minimal constructor */
    public Company(String id, String name, String code, String adress, String thearea1, String thearea2, String thearea, Date createTime, Integer status, Integer validateStatus) {
        this.id = id;
        this.name = name;
        this.code = code;
        this.adress = adress;
        this.thearea1 = thearea1;
        this.thearea2 = thearea2;
        this.thearea = thearea;
        this.createTime = createTime;
        this.status = status;
        this.validateStatus = validateStatus;
    }
    
    /** full constructor */
    public Company(String id, String name, String code, String contacts, String phoneNum, String adress, String fax, String email, String scale, String nature, String industry, String thearea1, String thearea2, String thearea, String thearea3, String capital, String website, Date createTime, Integer status, Integer validateStatus) {
        this.id = id;
        this.name = name;
        this.code = code;
        this.contacts = contacts;
        this.phoneNum = phoneNum;
        this.adress = adress;
        this.fax = fax;
        this.email = email;
        this.scale = scale;
        this.nature = nature;
        this.industry = industry;
        this.thearea1 = thearea1;
        this.thearea2 = thearea2;
        this.thearea = thearea;
        this.thearea3 = thearea3;
        this.capital = capital;
        this.website = website;
        this.createTime = createTime;
        this.status = status;
        this.validateStatus = validateStatus;
    }

   
    // Property accessors
    @Id 
    
    @Column(name="ID", unique=true, nullable=false, length=64)

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="NAME", unique=true, nullable=false, length=256)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="CODE", unique=true, nullable=false, length=32)

    public String getCode() {
        return this.code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    
    @Column(name="CONTACTS", length=32)

    public String getContacts() {
        return this.contacts;
    }
    
    public void setContacts(String contacts) {
        this.contacts = contacts;
    }
    
    @Column(name="PHONENUM", length=64)

    public String getPhoneNum() {
        return this.phoneNum;
    }
    
    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }
    
    @Column(name="ADRESS", nullable=false, length=100)

    public String getAdress() {
        return this.adress;
    }
    
    public void setAdress(String adress) {
        this.adress = adress;
    }
    
    @Column(name="FAX", length=32)

    public String getFax() {
        return this.fax;
    }
    
    public void setFax(String fax) {
        this.fax = fax;
    }
    
    @Column(name="EMAIL", length=64)

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    @Column(name="SCALE", length=64)

    public String getScale() {
        return this.scale;
    }
    
    public void setScale(String scale) {
        this.scale = scale;
    }
    
    @Column(name="NATURE", length=64)

    public String getNature() {
        return this.nature;
    }
    
    public void setNature(String nature) {
        this.nature = nature;
    }
    
    @Column(name="INDUSTRY", length=64)

    public String getIndustry() {
        return this.industry;
    }
    
    public void setIndustry(String industry) {
        this.industry = industry;
    }
    
    @Column(name="THEAREA1", nullable=false, length=64)

    public String getThearea1() {
        return this.thearea1;
    }
    
    public void setThearea1(String thearea1) {
        this.thearea1 = thearea1;
    }
    
    @Column(name="THEAREA2", nullable=false, length=64)

    public String getThearea2() {
        return this.thearea2;
    }
    
    public void setThearea2(String thearea2) {
        this.thearea2 = thearea2;
    }
    
    @Column(name="THEAREA", nullable=false, length=64)

    public String getThearea() {
        return this.thearea;
    }
    
    public void setThearea(String thearea) {
        this.thearea = thearea;
    }
    
    @Column(name="THEAREA3", length=512)

    public String getThearea3() {
        return this.thearea3;
    }
    
    public void setThearea3(String thearea3) {
        this.thearea3 = thearea3;
    }
    
    @Column(name="CAPITAL", length=64)

    public String getCapital() {
        return this.capital;
    }
    
    public void setCapital(String capital) {
        this.capital = capital;
    }
    
    @Column(name="WEBSITE", length=128)

    public String getWebsite() {
        return this.website;
    }
    
    public void setWebsite(String website) {
        this.website = website;
    }
    
    @Column(name="CREATETIME", nullable=false, length=19)

    public Date getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    @Column(name="STATUS", nullable=false, precision=1, scale=0)

    public Integer getStatus() {
        return this.status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    @Column(name="VALIDATESTATUS", nullable=false, precision=1, scale=0)

    public Integer getValidateStatus() {
        return this.validateStatus;
    }
    
    public void setValidateStatus(Integer validateStatus) {
        this.validateStatus = validateStatus;
    }
}